import { createRouter,createWebHashHistory } from "vue-router"
const login = ()=>import("../views/login.vue")
const UserCenter=()=>import("../views/UserCenter.vue")
const UserSettings=()=>import("../views/UserSettings.vue")
const UserInfo=()=>import("../views/UserInfo.vue")
const element = ()=>import("../views/Element.vue")
const AccountList = ()=>import("../views/AccountList.vue")
const routes = [
    {
        path:'/login',
        name:"login",
        component:login
    },
    {
        path:'/center',
        name:"usercenter",
        component:UserCenter
    },
    {
        path:'/settings',
        name:"usersettings",
        component:UserSettings
    },
    {
        path:'/info',
        name:"userinfo",
        component:UserInfo
    },
    {
        path:'/element',
        name:"element",
        component:element
    },
    {
        path:'/account',
        name:'account',
        component:AccountList
    }
]


const router  = createRouter({
    history: createWebHashHistory(),
    routes,
})

export default router